package com.it.park.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.it.park.client.service.ResourceDownloadRecordService;
import com.it.park.dao.ResourceDownloadRecordMapper;
import com.it.park.model.ResourceDownloadRecord;

@Service("resourceDownloadRecordService")
public class ResourceDownloadRecordServiceImpl extends BaseServiceImpl<ResourceDownloadRecord> implements ResourceDownloadRecordService {
	
	@Autowired
	private ResourceDownloadRecordMapper resourceDownloadRecordMapper;

	@Override
	public boolean insertSelective(ResourceDownloadRecord record) {
		return resourceDownloadRecordMapper.insertSelective(record)==1;
	}

	@Override
	public ResourceDownloadRecord selectByObject(ResourceDownloadRecord record) {
		return resourceDownloadRecordMapper.selectByObject(record);
	}

	@Override
	public List<ResourceDownloadRecord> selectByUserId(Integer userId) {
		return resourceDownloadRecordMapper.selectByUserId(userId);
	}

}
